package m2.link;

import m2.component.iface.ComponentInterfaceFourni;
import m2.connector.iface.RoleFrom;

public class AttachmentFrom extends Attachment {
	ComponentInterfaceFourni fourni;
	RoleFrom roleFrom;
	
	public AttachmentFrom(String name,ComponentInterfaceFourni fourni, RoleFrom roleFrom) {
		super(name);
		fourni.setAttach(this);
		roleFrom.setAttach(this);
		this.fourni = fourni;
		this.roleFrom = roleFrom;
		
		
	}

	public ComponentInterfaceFourni getFourni() {
		System.out.println(getClass().getName());
		return fourni;
	}

	public void setFourni(ComponentInterfaceFourni fourni) {
		this.fourni = fourni;
	}

	public RoleFrom getRoleFrom() {
		return roleFrom;
	}

	public void setRoleFrom(RoleFrom roleFrom) {
		this.roleFrom = roleFrom;
	}
	
	
	
}
